import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "../Public/DictIntIntHelper";
type int = number;
//class SAmuletUpdateConsume
    
    export  class SAmuletUpdateConsume
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.unit);
            arg1.writeInt(this.cost);
            arg1.writeInt(this.extend);
            DictIntIntHelper.write(arg1, this.itemCodeAmountDict);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.unit = arg1.readInt();
            this.cost = arg1.readInt();
            this.extend = arg1.readInt();
            this.itemCodeAmountDict = DictIntIntHelper.read(arg1);
            return;
        }

        public /* var */unit: int;

        public /* var */cost: int;

        public /* var */extend: int;

        public /* var */itemCodeAmountDict: Map<any, any> /* flash.utils.Dictionary */;
    }
